package config

import (
	"time"
)

const (
	GoogleLoginURL   = "https://www.googleapis.com/oauth2/v3/tokeninfo?id_token="
	FaceBookLoginURL = "https://graph.facebook.com/debug_token?access_token="
	JSonAPI          = "http://ip-api.com/json/"

	TimeFormat     = "2006-01-02T15:04:05.000Z0700"
	CdnPrefix      = "https://d38h19hwazoe1a.cloudfront.net/"
	CountryInfo    = "country_info"
	EmailRegexp    = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"
	BirthdayRegexp = "^((((19|20)\\d{2})-(0?[13-9]|1[012])-(0?[1-9]|[12]\\d|30))|(((19|20)\\d{2})-(0?[13578]|1[02])-31)|(((19|20)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))-0?2-29))$"
)

const (
	// redis 相关
	UserToken        = "userToken:"
	UserInfo         = "userInfo:"

	ExpireUserToken  = time.Second * 60 * 60 * 24 * 7
	//缓存相关
)





const (
	//mongo数据库相关

)